Provide solution for cacheSolve based on the cachemean example