Added a method to swap the value of two NSInteger pointers