Code to find the best fit parabola to data