added edmonds-karp (and small fixes)