Samples are now passed by const ref in constructor of BSpline, PSpline,
and RBFSpline.