Initial AdaBoost implementation.