optimize: fixing SampleRankExample to work in the case when there is more than one proposal with the best objective score