added weights to weakClassifier train()