C++ functions to convert between decimal degrees and degrees, minutes, and seconds