Sha Ni recovery binary search tree