Some search tree code.