update solution for unique bst.