implemented Xor and Mux gates