LibD3C: Ensemble classifiers with a clustering and dynamic selection strategy