added a test for synchronizing phases through a physical file
finished MapReduce implementation