Provides haversine formula, implemented with Arel.