Inverse matrix functions implemented