copyArray is optimized

Lalalalaalalala