Levenshtein distance with 2 matrices in C