The FastMap Algorithm for Shortest Path Computations