Added Prims algorithms solution