[API] add cpp for CubicSpline2d