Created matrix inverse functions