standard Naive Bayes classifier

Has implemented the standard Naive Bayes classifier. This is an updated version of #288 and #292, which are closed due to misoperations.