adds Prim's Algorithm for computing Minimum Spanning Tree