modified dinic