Adding vector_swap with tests