Destructor in the implementation of Stack