mstree function

Find the minimal spanning tree