Naive Bayes Implementation in Java