How does the human brain decide which memories to store?