Linked list implementation using nodes.