Completing the cacheSolve function