Purely functional, real-time deques with catenation (1999)

by Haim Kaplan, Robert E Tarjan
Venue:Journal of the ACM