[Olena-patches] last-svn-commit-50-g466ad51 Add a subsampling algorithm.