add naive bayes implementation