Make tree-searching machine a list of branches