Given a 2-D array Z, return its unique rows — duplicate rows removed, with the remaining rows sorted.
Z
solve(...)