Create Prim's Algorithm