add function bodies to cache matrix inverse operation