Adding the 1st version of pagerank algorithm