Added a less functional Org-mode copy of the cl reduce function.