On exit: the squared distances.
If , contains the squared distance of the th sample point from the th group mean, , for and .
If and , contains the squared distance between the th mean and the th mean, , for and . The elements are not referenced, for .
If and , contains the squared distance between the th mean and the th mean, , for and . Since the elements are not referenced, for and .