Added method to print the optimal bst