Moving some classes out of adaboost.h and applying templates whenever
needed.