That would be amygdala of the limbic system. It includes many parts of the brain among which are hippocampus, hypothalamus, amygdala. Among these three amygdala is responsible for distributing and deciding where the memories are stored in the brain and it is believed that is based on the strength of the emotional response.