Create Prims Algorithm