At the completion of the Middle Ages how long had universities existed?