Cubic interpolation implemented