Added delete method for LinkedList