bug in cacheSolve solved