Added documentation to old code for understanding and remove the parallelization
Faster version of the code using sorting methods