Added calculation of longest word to loadDictionary