Added GPS bearing and distance calculation functions.