Implement makeCacheMatrix and cacheSolve functions.