first implementation of the adaboost, not working