To keep your memory sharp, it's helpful to understand things that affect memory for better or for worse.