wrote getMaxFlow
Overwriting maxflow