Updated LineSegment structure

-Updated LineSegment data structure to contain previous and next
LineSegments along the line. This will be used during the matching phase