fix dtor, pop and add deallocate
	modified:   assignment2/as2/main.cpp