Compact tree of Gabriel Rice