move keylength-finding utils to Frequency module