Standard Naive Bayes Classifier

implement the standard Naive Bayes classifier