Center of Mass solutions

Center of Mass was solved using PHP by 8 contestants. Solution sizes: average 1385 bytes (shortest: 1174; longest: 1710).