inverse matrix functions added