add copy function from vector to vector