Implemented functions 'makeCacheMatrix' and 'cacheSolve'.