Adding pagerank algorithm