idx tree coding