Optimize JavaPageRank to use reduceByKey instead of groupByKey