Dinic almost working