fix uniq to give unique items from list or iterator
Consider only unique solutions.
Add comments.