A naive Bayes implementation in JAVA