Update builderBahvaior with memory of the greatest heap