Active reranking algorithm explained