Swaps two ints, using pointers and an inline function