Reimplement push-relabel maximum flow with gap heuristics, only the value calculation so far.