constructing minimum spanning trees 5798108