unique_mapping function

get indexes of a unique set of the input