pagerank single thread version