Corrected cacheSolve