Add an implement of min edit distance