Statistics for Implementations of iterative algorithms in Hadoop and Spark