fixes CubicSpline2d constructor exceptions

Previously the constructors only checked that input vectors (input map) not to be empty. Now the constructors require two or more data points.