Use a paper and pencil with erasure to simulate the deque.