Algorithm For Prims Minimum Spanning Tree