add a great circle distance routine

This is unused for now, but will be useful in the future for computing
speed graphs or something, for imports from GPX files where we don't
have speed data for the points already.