splitsegments function

Split Segments by Endpoint Proximity