Implementing bitwise logical AND, OR, XOR.