replaced HashMaps by TrieMaps. Let
Maybe this improves memory performance?