[add] formulae for TF-IDF and BM25
[mod] refactor PageRank scores handling