solved recover binary search tree problem.