During the Middle Ages, people relied on what two principal authorities for their understanding of the universe? What are those two principal authorities?