added algorithm that swap two ints in-place via bit operation