Cardinality estimation algorithms in clojure