1 bit ALU simulation