Update cachematrix

This function can take matrix and can cache its inverse.