Branch and bound algorithm example