Prune a decision tree to avoid overfitting