Tell me about the history of how Pythagorean theorem developed in parallel in ancient China.