support splines of degree N
clean up