Fit Quadratic and Cubic Curves