Implemented Naive Bayes with storage contingency table.