Codes for makeCacheMatrix function and cacheSolve updated