outsourced letter frequency calculation

LFC needed for another algorithm in vigenere-crack, outsourced in both files to keep common functions the same