The Evolution of Fundamental Neural Circuits for Cognition in Silico