Finding the closest point on curves using Bezier Clipping
other version
return