Provide solution for cacheSolve based on cachemean example