ligo-segments defines the segment, segmentlist, and segmentlistdict objects for manipulating semi-open intervals.