Clojure RETE implementation for frames