coord2dist function

Geographical coordinates to distances