The Mathematics of Plaenames in Genealogy