added Edmonds Karp implementation of max flow. not tested yet!