fix BinarySearchTree bugs
fix references and removals