Refactor NetworkFlow to contain length info. Related to #8.
Add DFS for maxflow.
Add logging...