template for decision tree learning