getAncestors function

Recursively create a character vector of ancestors for an individual ID.