improve and algorithm Dinic