Added vanilla implementation of Trie - optimize later