Swap integers using pointers and references.