Added cacheSolve()