How were the tang and song dynasties able to provide the world with such important cultural political and technological innovations