Implementation of MapReduce Connected Components for Spark