Updated Maxflow Class