Linked list implementations using Struct class as a template