add delete() for linked list (ch2)