Adding practice code. Map Reduce DFS single threaded.