Added IsPowerOfTwo to C#