implement code generation for basic vector copy