A Library for Spherical Geometry