Add my solution for cacheSolve