Naive parallelization of second for loop in dijkstraSSPA function