added naive bayes mean and std calculation