Completed the bodies of makeCacheMatrix and cacheSolve functions