Bernoulli naive bayes classifier completed!