Add trie implementation
Add minimality test