added formulas of naive bayes