Fixed bug with ImprovedStackImpl reverse()