Separate trie.c in a module (trie.{h,c}) and main

We have separated trie.c in a header file, module and
main module (trie_main.c)