Build a bagging classifier from scratch using bootstrap-sampled CART trees and majority-vote predictions.