implmented in-memory pagerank prepare