create the calculateDistance in GpsTracker(Bugged)