Array Copy Function implemented