Implemented copying a vector into a row of a matrix.