Implemented MapReduce framework in JAVA using threading