findLoops function

Find loops in a pedigree tree