Added delete element method to the LinkedList