More elegant way to least common acentor