create the calculateDistance in GpsTracker(C)