Flow solver written in Clojure