Improved pagerank

Improved pagerank computation time by avoiding methods calls