First draft of cacheSolve.