Math Behind Decision Tree