added random spanning tree