Added the functionality to makeCacheMAtrix and cacheSolve functions