added automatic search method discovery and predict MNB method