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