TwosPower better solution