inverse and det2 of complex matrix