What were some of the ways that the Roman Catholic Church helped keep education from disappearing during the Middle Ages? Why was this important?