Decrease memory usage in Complement Naive bayes