Bit Manipulation: tricks with bits — Algorithms | MindForge