[Olena-patches] olena-0.10 10.269: Add a more generic version of Salembier's algorithm