math behind decision tree