Fix the unique BST generation problem, tree node instance creation should happen inside the loop.