Implemented Distinct

Distinct finds distinct elements in the input, based on the initial
value, or the result of an expression.