moved haversine to libs
citations filled in