implemented insertTNode and deleteTNode
implemented isWord, isPrefixToWord, and insertWord