Add Prims and Floyd Algorithms