ListAncestors function

List ancestors