compute_tree function

Compute decision tree from data set