Evolution of Cooperation through Genetic Collective Learning and Imitation in Multiagent Societies