Shortest path algorithm for Pregel systems. Implemented using Apache Spark and GraphX APIs. Scala