Clojure implementation of Burrows-Wheeler transform (block-sorting compression)