Inverse of an NxN Matrix