added deep copy array method