interpolation of splines between n points