all linked list methods implemented