Boosting algorithm implementation.