Code solving triangle friendship problem via Hadoop MapReduce framework.