Added Tree and Trie implementations and basic tests