This small routine calculates the minimum distance of two points on the earth's surface, i.e. on a great circle. Assumption: The earth is a perfect sphere with a radius of 6371 km.