update the BayesClassifier.cpp