add delete method to linkedlist