Assignment2 : Caching inverse of a matrix.