my implementation of naive bayes added