Pankaj: Add trove dependency. This library allows to build a collection of primitive types and is space efficient compared to regular java collection of objects.
Pankaj: Add TernaryTrie class and insert method on the trie.