Calculates the center of a group.