changed constructor of classifier, added missing return statement to predict_from_histogram