modify ResizingArrayDeque