Given a pedigree, the function assigns the generation number each individual belongs in.
A pedigree with columns organized: ID, Dam, Sire
Zero is the base population.
kindepth function in
A vector of values is returned. This vector is in the same order as the ID column of the pedigree.