BST: generating the greater value tree