Update CalculateDictionary.m