fix MR algo to work to find connected components in large data sets