Improved Copying of array