An Anatomy of Thought: The Origin and Machinery of the Mind