function cacheSolve body added