How can I create an alphabetical index for a dictionary (under each character a list of words start by this character)