error while calling function cacheSolve fixed.