copies a 2-dimensional vector (array)