Floyd-Warshall basic implementation for Apache Giraph / Hadoop