adding levenshtein distance in c++