Sociocultural Evolution: Calculation and Contingency