MaxFlow attempt 1