C Implementation of Levenshtein Distance