Returns the topmost cells of the hierarchy in an array that contains no descendants for each Cell that it contains. Duplicates should be removed in the cells array to improve performance.