Bezier closest point/distance algorithms.