add power of two function in Integer class