improved ArticleClusterer.getPairs in terms of speed