Tweaks is_power_of_2 - removed uneccessary lines.