cpp implementation of Unique Binary Search Trees