restore binary search tree

508ms
1132ms