Unique Binary Search Tree II,  pow (x, n)