[Olena-patches] 1708: Add functors max and min.