[Arithmetic] Add IsPowerOfTwo() function.