committing cached inverse matrix code solution