iterative catagorical impurity updates for 6x speed up to classification