Add functionality to reconstruct inheritance tree from list of derived/parent