Implement Mux gate.