Humanity was stagnant for millennia — then something big changed 150 years ago