Ternario, Logica Bit a Bit