attempt at making the quadratic interpolation faster
Do linear interpolation instead of quadratic in the interests of speed