Calculating haversine, the distance between two pairs latitude/longitude.