cheesy attempt at haversine distance