New form of spanning tree, should be working now.

Not sure why teh results are so low though (only just gets over the 0.4 limit!)