Persistent deque implementation and benchmarking (in Haskell)