Long-term memory may help elephants adapt to climate change