Naive Bayes with cross validation