MapReduce project finding distances between nodes on a graph