Return the unique elements of the array U, as well as the index array I such that U[I] == array
The array to use.
The unique elements of the array
The indices such that U[I] == array
U[I] == array