How to find adjoint of matrix