Linked list implementation of queues