majority chop helper function for adaboost