added copy methods to trie and btree
working in structure and improved some code