Create TernarySearchTree