Templated Lisnkedlist