MapReduce (Hadoop streaming API) version of an algorithm to compute the friends of friends in a given friends graph iteratively