inverse of a square matrix