Replace elements with unique numeric tag (of type uint32)
col1, col2: data that can be concatinated, like char matrices, numeric matrices, cell arrays or string arrays
i1,i2: unique sequential index for combination of col1 and col2