rank_filter.hxx: Fixed indexing for pos.