Social Formations and Cultural Patterns of the Ancient and Medieval World