Adding pagerank code