Weighted edit distance.