Unique Binary Search Tree solution