singly linked list template, append written
implemented basic linked list