Added back partial pivoting to Gaussian elimination