implemented and added new tree algorithm

- recover binary tree