What does the swap() method do in AEX-9?