Since everything seems to work, removing from Adaboost.h the responsability to produce the integral matrices.