nearest means and naive bayes classification