Makes (Poly)ReSample work for LatLon grid and fixed bugs

I have included a new subroutine 'haversine' to calculate distance between two latlon points. My question is where I should put this routine. Right now it is in GroupEditSubs.f90 but is also used in nodeedit.f90.

Is there I file where it would make more sense to put the routine in?