Implement a decision tree classifier split evaluation metric such as Gini impurity or information gain from scratch.