Update the singly linked list implementation.