added new class for SegmentPairs
added new methods for segmentPairs in Segments.cpp and Segments.h
segment pairs methods overridden