fix type parameter
add trace
compare bb max with dp max and print optimum flag
fix initial parameters for choose