Generating the decision tree