add xor/nand/nor implementations