naive bayes large dataset work