Completed the cacheSolve function