recoverTree
deleteDuplicates for sorted list