Implement basic tree-searching instructions and relations