gini index and cross entropy (from ch8)