move Line/Segment into set subpackage