[algorithms][distance] implement get_segments class: sends all segments
of a geometry to an output iterator
[algorithms][distance] for L/L distances, use an R-tree of segments
instead of calling intersects and using two R-trees of points