My goal is to first create an array "out" which has the same number of elements as the array A1 and every element of the array A2 is zero. Then, copy the elements