Implementation of functions for generation of naive Bayesian classifiers