Adding BnB algorithm