A 2D cubic spline class