minor edit to Pagerank code