closeRing() method added in CoordinateList class