Added copy(vector, vector) convenience function.