use k-mismatch to compute editDistance first, then use k-diff to compute
editDistance