Untested binary tree code