A few standard algorithms in Clojure