Impelement MinCutPhase()

This returns a cut with which we can calculate the weight. We keep a
copy of the internal nodes, as we change them, so it's not very
memory-cheap.
Remove nodes from mergeVertices()

We only needed it for the length, and we can read that from the edge
matrix.