swap 2 bits in binary form of an integer, i.e. 12 = 1100, swap(12,1,2) = 1010 = 10