recover binary tree