Solution of geodetic problems on the ellipsoid