initial implementation of Naïve Bayes classifier