The Naive Bayes algorithm