spatialBB Performing spatially adaptive smoothing by using a branch and bound algorithm to select knot locations for splines.