First dirty fix, now the closed mushroom looks pretty nice.
Just refactor the case for closed curve.
Finish refactoring knot insertion algorithm.
Add a little hack in `draw` function.
Clean and regenerate IPython contents.