Architecture of Memories