solution to Unique Binary Search Trees II