Added Spherical and Linear distance calculation in distance_between method

Added Spherical distance and linear distance calculation to the distance_between method. Reused the same config setting "distances" as recommended.
Added a simple test for both formulas.