Distances matrix calculation
added speed to edges