Dynamic Selection of Classifiers in Bug Prediction: An Adaptive Method