finished intersection implementation
finished implementation of SegmentTraits.