Add DequeIndex class, optimized for deque-like workloads.