Changed impurity calculation to have punishment for unlabelled points