Fix problem when running under dfs.
Rewrite PageRankWritable so that it is more efficient.