The role of cognitive and contextual factors in the development of organization in memory