added final step to SparkMarkov algorithm