solve unique binary search tree