Trie dictionary

Added a simple trie-based dictionary implementation