BFS implementation on Map/Reduce