Reduce constant factor of maxflow algorithms