Tweak documentation.

Almost numpy conform.
Use int for indices array
Speed up calculation for parenthesizations with tree arguments.
Don't call function when it's not necessary.
Use chain_order_for_three
Add iPython notebook with some experiments.