add two matrix inverse functions