I have following matrix with different strings in each column. The minimum number of different strings in one column is 2. Some columns have up to 20 different strings, some