Geodesy programming C++ implementation