Cache P matrices in tree nodes.
Remove unused variables.
Tiny, ridiculous optimisation.
Merging bullshit.