Enhanced numeric stability of Gauss-Jordan algorithm