modfied makeCacheMatrix and cacheSolve functions as per requirements from the programming assginments2.