change the distance calculation method

Calculate the distance using Haversine formula in WGS-84