A simple implementation of the adaboost algorithm