unique binary search trees sol2 dp