Added a sample_ellipsoid function