NrUnique function

Number of unique elements in a vector