Core functional blocks for Clojure implementation of Weighted Histogram Analysis Method