Mod Trie ds using copy-and-swap idiom and rule of three