unique bst II recurse and dp