Create editDistance