Center of Mass solutions

Center of Mass was solved using Scala by 2 contestants. Solution sizes: average 3339 bytes (shortest: 2816; longest: 3792).