TrinaryTreeInsert and print