[API] add cubic splines