centerOfMass Calculates the center of mass of a collection of user defined objects. Data structures are circular linked lists