Prims Minimum Weight Spanning Tree Algorithm