Basic Pagerank implementation done