get the distance between tow points in the earth.
the code of a new CF algorithm