Maximum spanning tree alg.