add knnRerank.m to rerank