Tree-structured data processor