add Dinic's max flow