Updated GeoUtils to calculate midpoint