Added an accumulator based version to test against the map reduce for spark performance.