added coorPair class and MapHistory