add solution for matrix inverse.