make defaultdict tree.