add function

get inverse of a  maxtric