First level of changes for computing pagerank with two rank matrices.