An implementation of Naive Bayes Classifier.