Linked list implementation.