Fixed taken array update to show BnB optimal solution