changed choice of pivot in guass-jordan method.

new code uses maximum instead of minimum. based on code and discussion in
NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5)