Bitwise operations for competitive programming

https://codeforces.com/blog/entry/73490