history of Gwynedd in the High Middle Ages