Naive Bayes classifier written in Scalding