inverse of a 3x3 matrix by gaussian elimination