Initial implementation of Trie. Example in main method at bottom.