lexicographic tree