Find inverse using Gaussian elimination (#681)