22. The method of claim 20 , wherein multiple identifiers are assigned in case of multiple matches.
20. A method for annotating tokens in a data structure comprising the steps of: receiving multiple data elements to be stored from an input data structure, providing a continuous array in memory, allocating memory space within said continuous array for said data elements, wherein said continuous array is distributed over primary and secondary memory, storing said data elements in said allocated memory space, creating a tree-based dictionary from said data elements received from said input data structure, comprising the steps of: associating an identifier with at least a subset of said data elements, storing each data element with an identifier in a tree within said continuous array, wherein one of common prefixes and common suffixes of said elements correspond to entries of said tree, searching the data structure by means of the dictionary which includes tokens by comparing at least one of said tokens with one of the prefix and the suffix of the entries of the tree-based dictionary, matching at least one of said tokens with an entry of a tree-based dictionary comprising an identifier and annotating said token of said data structure with said identifier.