Researchers isolate memorization from reasoning in AI neural networks