A bit manipulation lab