Added a Tinv function for a pedigree.