Commit- working on algorithm

Working on the mapreduce algorithm