More improvements
completed distance to segment - tests missing
Added tests for min_distance_from_segment