Finding MST using Prims Algorithm