Add a function that reverses bits of an integer.