Added Bisect function to bezier curve