Implementing AdaBoost in OpenCV