Unit tests for kdtree_from_segs, lookup_adj_segment
Small fixes for make_intersect_polylines, works for simple case