BalanceOverTree Performance optim