Refactored method of determining minimum sequence length, renamed arrays, method variables.