An implementation of stacks & queues