Implement framework of citation-knn