Use primer length to shortcut edit dist recursion