[BSTree.cs] refactoring