mergeSortedArray and uniqueBST