the territory belonged to denmark during viking times