Preferential learning and memory resolve social dilemma. (May 2018)