add majority vote in bagging