On searching for optimal classifiers among Bayesian networks