[Olena-patches] milena r2796: Fix gaussian algorithm