Removing dead code
reordering things a bit
First working version of trivial degree 2 nodes contraction. Works
well in practice, but a bunch of tests still fail