Added LinkedList destructor.