UniqueBinarySearchTrees two DP solutions