Draft binary tree API