Add is_base2() utility function.