Introduction to Naive Bayes' algorithm