Fredkin gates