Algorithm Dinic