Add UnionFind<Key>::getFamily()