converted all the spline_library classes to header-only template classes