Coffeescript implementation of Edmunds-Karp MaxFlow algorithm