Compact logic operator utilizing a single-layer metasurface | Synapse