Ibn Khaldun and Vico. The establishment of a Mediterranean cyclic understanding of history