Clojure code to perform an n-gram search.