changed array matrix to one dimensional, now calculated pagerank one at a time.