Throughout their history, Slavs came into contact with non-Slavic groups. What features of the Republic of Macedonia helped pass on its legacy to future generations?