Maximum subarray problem solution in Clojure