so I have a 100000 x 6 matrix where the 5 columns are keywords to be matched with strings in the first column. ideally for long strings and long patterns we would go for alg