Move b-spline algorithm from heightmap.cpp to bspline.cpp.