Naive Bayes Classifier in C++