Zaslat záznam emailem: Evolution and Optimality of Similar Neural Mechanisms for Perception and Action during Search