implemented ellipsoid plot function in 3D