naive bayes mean and std calculation added