Clean spline basis code.
Add segment finder as module helper function.
Add fixed and variable width knot generators.
Start indexing at 0.
Clean spline code.
Fix a small bug.