Computing inverse of a matrix using cached computation

Comments are added, and one more edit