Added tree and trie implementations