Optimize find_intersections
for closed intervals
#203
Merged
find_intersections
for closed intervals
#203