Deep Thinking: What Mathematics Can Teach Us About the Mind