Add doubly-end queue. Slow down implemenation.