nub specialized to Ord types for better performance.
Returns a subsequence of the stream removing any duplicate elements.
The memory used is proportional to the number of unique elements in
the stream. One way to limit the memory is to use take on the
resulting stream to limit the unique elements in the stream.