Pedigree analysis for Udaf

Use
generations for calculation