Generate a Hash Array Mapped Trie using C++ or other appropriate language