functioning levenshtein algo. hurray.