Improved Penalties for the Branch and Bound Algorithm