Added destructor for Array
Queue
Fixed dangling pointer