added code for the linked list ADT