Quantum-inspired Fredkin gate based on spatial modes of light.