Implemented a more efficient question generator for BST