network flows
Revert "divide and conquer"

This reverts commit 34c5b4eb62d448d0ee13f2e1901a8e464519d533.