Finish alg1, EdgeHeap/VertexHeap are essentially the same, should be easy to combine