impl. levensteindistance