Containing and shrinking ellipsoids in the path-following algorithm