Algorithm Using Mapreduce Technique