Added xor gate simulation