Here's a study that says having a 100g of cranberries daily improves memory and staves off dementia.
Cranberry study article Now, I know most of us can't grow cranberries, but apparently the active ingredients are anthocyanins and proanthocyanidins which give berries red, blue, or purple color. So, theoretically any dark colored berry would have these ingredients - mulberry, serviceberry, blueberry, blackberry, raspberry, goji berry, plum, and cherry.