Generic splines library.