Binary Feature Probabilistic Classifier - Coding problem | OneNoughtOne