Added max flow stuff to FlowNetwork at prof's request