What was the major institutional force like catholic church in the Middle Ages preventing freedom of the mind to discover and explore?