Great-circle distance between two latitude/longitude points using the haversine formula. Returns kilometers and miles. Deterministic.