retrieve unique values in a vector x