MapReduce implementation of training of Naive Bayes Multinomial model