CODE THAT WORK !!! This is an implementation of the algorithm can be done.
I solved the problem of processing large number of data.