Population and Technological Change: A Study of Long-Term Trends