Update BB algorithm