preliminary adaboost inplementation