get_distance_pair function

Compute shortest distance between origin and destination nodes.