Simple adaboost on Java - Need to be improved