bug fix for pagerank. handle iterations more than 1