clojure: fixed and tweaked the symmetries function