Ancient China military ranks, how did they do it?