Largest BST subtree