Solve number of binary search tree