Add function to compute bounding sphere of a shape