Add a distinct iterator.

This is similar in effect the `unique` function is base, but works with infinite iterators and preserves order of the input iterator.