recover BST 1st

copy other's code