Write linked list, stack, and queue