Turns out, working up a sweat isn’t just good for making you happier and calmer; it’s also the secret to a better memory.