Returns an array that represents the set (no duplicates) of all parents for the given array of cells.