Fast Adaboost in cpp