Calculates distance between to locations using haversine's algorithm