Mathematical reasoning and memory skills in children