fixed bug in compare_classifiers (wrong variable used)
added generalized classifier builder