create a cache of solv of a matrix ,and then create a function to learn it .