A study found exercise helped improve seniors' memory by up to 30%