refactored Trie class (Node defined as an inner class)
refactored BT class (Node defined as an inner class)
refactored BST class (Node defined as an inner class)