NotXOR logic for d-cubes added