Adds Bayes classifier and utility for training.