updated version of CW2

spanning tree works now, more efficiency needed!