Added detector inheritance with all the training examples in each iteration.