Stacks, queues, and lists