Think of describing your algorithms in terms of Boolean operations on the bit vectors.