Issue #161: added Segment class for directed and undirected line segments