foldl'
removed the deque. left in the deque branch
removed the now-inapplicable warning about -threaded