edit distance minimum sequence length