This copies the array first. I needed this to compare the original array to the result.