Naive Bayes document classifier for the classic 20 newsgroups dataset