Tree data model with an array of ancestors