[Olena-patches] milena r4554: Add fast version of dual input max tree computation and fix