The Patterns of History, and What They Reveal About the Future