Updating the modified LinkedList node deletion methods.