Correction of Edit Distance Algorithm.