Double array size, takes last element and assign to new array