Constructing a decision tree