Distributed Naive Bayes mathods implemented.