[Olena-patches] r4421: Add implementation of HQ3x algorithm