Finished PageRank implementation