Implementation of LZW in Clojure