Perform Gaussian elimination (#684)