New function CardinalSpline. Refactor catmullRomSpline() as a special case of cardinal splines.