Added deleteNode to LinkedList class.