Avoid realocating counter for gini impurity