demonstrates the xor swap algorithm