added gauss-jordan instead of gauss