slightly faster maxflow