Minor fixes for Haversine

Changed the forumla slightly and changed constant of earths radius to
the standard KM so known good answers can be found.