inverse of a matrix code