Linked List solution template