maxflow_dinic reogranized