added B-spline module.