add nan to haversine, fixed path in patent_example