swap vector