Linked list template