add method for removing tail nodes from linked list