BnB Recursive Implementation