copyArray is optimized

Lalalalaalalala
Merge pull request #1 from nqy/master

copyArray is optimized