First time with all code to build trie and search it