Manually, by splitting the original array in two and copying the values to thew new array.