Bit manipulation in a nutshell