Adding accumulator module with naive bayes accumulator