BST problems and solutions