spantree function

Minimum Spanning Tree