Edited key length guess algorithm and override

The key length guessing algorithm has been modified to
provide the lowest length key possible, as detected
from the frequency analysis.