Templates in the singly linked list