Caching the inverse of a Matrix

Solution to Programming Assignment 2 - An optimal approach to compute
inverse of a square matrix