Check if n is a Power of Two: n & (n-1) == 0 - Power of Two & Counting Bits | OneNoughtOne