createFamilyToParentsMapping function

Create a mapping of family IDs to parent IDs