Fixed up BST code.