Hadoop MapReduce implemented to find distances from vertices on a graph