Added Destructor for linked list