Bitwise Algebra