resizing array of stack