We introduce an additional data structure called a datalist associated with each node that contains information about the term for which it has been used.
The datalist keeps on updating as new branches are introduced because same term can be reused for describing multiple keywords.