added functions to convert from spherical to euclidean space and back for circular regression