Code optimize

- initialize class Dictionary
- removed method '#collect_by_max_length'

Please enter the commit message for your changes. Lines starting