adding algorithm for calculating edit distance