Changed the Geodesic into a template class to allow the creation of different sphere geometries.