added logic for loading dictionary as tree