backtrack for 01bag and combination