Evolution of learning associative memory