Monotone Cubic Interpolation for graphing in Lua.