replace nodesByNodeID with a unordered map (this fixes loading times of annotations with large node ids)
and nodeCounter with a per treeListElement size variable
removed dynarray because of no remaining application