added gpuarray2DtoCudaArray