find closest point on a line segment to a point | ScratchStats