haversine function

Calculate the Great-Circle Distance between two points in kilometers