Added code for makeCachedMatrix and cacheSolve functions