getSplineBasis function

Basis matrix for periodic splines